if (opera.contexts.speeddial) {
  var sd = opera.contexts.speeddial; 
  sd.title = "";
  sd.url = ""; 
}
	  var type = widget.preferences.type;
      var trans = widget.preferences.trans;
	  var isTransparent = widget.preferences.isTransparent;
	var backgroundColour = widget.preferences.backgroundColour;
		
	  window.onload = prefChange;

      function startup() {

      }
	 
	 function prefChange() {
        document.body.style = "background-color:" + (eval(widget.preferences.isTransparent) ? 'transparent' : widget.preferences.backgroundColour);
		if (opera.contexts.speeddial) {
			var sd = opera.contexts.speeddial; 
			sd.title = widget.preferences.spacerTitle;
			sd.url = widget.preferences.spacerURL; 
		}
    }

